package com.financial.service.platbalancepay.controller;

import com.financial.service.platbalancepay.service.BalancePayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 余额支付汇总表
 * 
 * @author zhaopengjun
 * @email 1428939700@qq.com
 * @date 2019-08-23 23:49:59
 */
 
@RestController
@RequestMapping("/platbalancepay/financialReceiptBalancepay")
public class FinancialReceiptBalancepayController {
	@Autowired
	private BalancePayService financialReceiptBalancepayService;

	@PostMapping("/ysWechatBalancePay")
	public Map<String,Object> ysWechatBalancePay(@RequestParam Map<String,Object> paramMap){
		return financialReceiptBalancepayService.ysWechatBalancePay(paramMap);
	}

	/**
	 * @Author zhaopengjun
	 * @Description 银盛支付异步回执
	 * @Date 16:56 2019/5/21
	 * @Param
	 * @return
	 **/
	@PostMapping("/ysWechatBalancePayCallBack")
	public void ysWechatBalancePayCallBack(@RequestParam Map<String,String> paramMap, HttpServletResponse response) {
		financialReceiptBalancepayService.balancePayCallBack(paramMap, response);

	}
	
}
